package com.lan.java8.model.info;

import com.lan.java8.antlr.Java8Parser;
import lombok.Data;

import java.util.List;

@Data
public class MethodInfo {

    private List<String> methodModifier;

    private String returnInfo;

    private String name;

    private List<Param> paramList;

    private boolean is = false;

    public MethodInfo get(Java8Parser.MethodDeclarationContext context) {
        Java8Parser.MethodHeaderContext methodHeaderContext = context.methodHeader();
        if (methodHeaderContext != null) {
            Java8Parser.ResultContext resultContext = methodHeaderContext.result();
            resultContext(resultContext);
        }

        return null;
    }


    private void resultContext(Java8Parser.ResultContext resultContext) {
        if (resultContext != null) {
            Java8Parser.UnannTypeContext unannTypeContext = resultContext.unannType();
        }
    }
}
